import logging,yagmail,yaml
def set_up():
    logging.basicConfig(filename='log.log',filemode='w+',level=logging.DEBUG,format='%(filename)s->%(asctime)s->%(thread)d->%(message)s')
def emil(filename):
    emile = yagmail.SMTP(user="2410811597@qq.com",password="uzwlvaboffeqecfh",host="smtp.qq.com")
    emile.send(to="2410811597@qq.com",subject="月考",contents="综合服务平台接口测试报告",attachments=filename)
def set_uu(file):
    with open(file,'r',encoding='utf-8') as f:
        return yaml.safe_load(f)